package czt.ocr.mapper;

import czt.ocr.entity.BaseVoltage;
import czt.ocr.entity.ControlArea;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author czt
 * @version 1.0
 * @since 2025/4/8
 */
@Mapper
public interface ControlAreaMapper {

    @Insert("insert into control_area values (#{num},#{mrid},#{name},#{parent})")
    void insertControlArea(ControlArea controlArea);

    @Select("select * from control_area")
    List<ControlArea> getControlAreas();
}
